﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/MasterPage.Master" AutoEventWireup="true" CodeBehind="UploadSong.aspx.cs" Inherits="SemPlayGen.Website.UploadSong" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <asp:Panel ID="pnlSongs" runat="server" GroupingText="Внеси песна">
        <table>
            <tr>
                <td style="width:200px;">Изведувач:</td>
                <td style="width:200px;"><asp:TextBox runat="server" ID="txtArtistName" Width="200px" /></td>
            </tr>
            <tr>
                <td>Песна:</td>
                <td><asp:TextBox runat="server" ID="txtSongName" Width="200px" /></td>
            </tr>
            <tr>
                <td>Тип на изведувач:</td>
                <td><asp:DropDownList runat="server" ID="ddlArtistType" DataTextField="Name" DataValueField="ID" Width="200px" OnDataBound="ddl_DataBound" /></td>
            </tr>
            <tr>
                <td>Тип на музика:</td>
                <td><asp:DropDownList runat="server" ID="ddlMusicType" DataTextField="Name" DataValueField="ID" Width="200px" OnDataBound="ddl_DataBound" /></td>
            </tr>
            <tr>
                <td>Вид на музика:</td>
                <td><asp:DropDownList runat="server" ID="ddlGenre" DataTextField="Name" DataValueField="ID" Width="200px" OnDataBound="ddl_DataBound" /></td>
            </tr>
            <tr>
                <td>Сигнал:</td>
                <td><asp:DropDownList runat="server" ID="ddlSignal" DataTextField="Name" 
                        DataValueField="ID" Width="200px" OnDataBound="ddl_DataBound" /></td>
            </tr>
            <tr>
                <td>Со текст?:</td>
                <td>
                    <asp:RadioButton runat="server" ID="chcWithText" Text="Да" GroupName="rg1" Checked="true" />
                    <asp:RadioButton runat="server" ID="chcWithOutText" Text="Не" GroupName="rg1" />
                </td>
            </tr>
            <tr>
                <td>Upload:</td>
                <td>
                    <asp:FileUpload ID="FileUpload1" runat="server" /> </td>
            </tr>
            <tr>
                <td style="padding-top:20px;" colspan="2">
                    <asp:Button runat="server" ID="btnInsert" Text="Внеси" Width="100px" Height="30px"
                        Font-Bold="true" onclick="btnInsert_Click" />&nbsp;&nbsp;
                    <asp:Button runat="server" ID="btnReset" Text="Одново" Width="70px" Height="30px"
                        onclick="btnReset_Click" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Label runat="server" ID="lblStatus" Text="" />
                </td>
            </tr>
        </table>
    </asp:Panel>

    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="Dynamic" ControlToValidate="txtSongName" ErrorMessage="Полето 'Песна' е задолжително<br />" />
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Display="Dynamic" ControlToValidate="txtArtistName" ErrorMessage="Полето 'Изведувач' е задолжително<br />" />
    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Display="Dynamic" ControlToValidate="ddlArtistType" InitialValue="0" ErrorMessage="Полето 'Тип на изведувач' е задолжително<br />" />
    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Display="Dynamic" ControlToValidate="ddlMusicType" InitialValue="0" ErrorMessage="Полето 'Тип на музика' е задолжително<br />" />
    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" Display="Dynamic" ControlToValidate="ddlGenre" InitialValue="0" ErrorMessage="Полето 'Вид на музика' е задолжително<br />" />
    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" Display="Dynamic" ControlToValidate="ddlSignal" InitialValue="0" ErrorMessage="Полето 'Сигнал' е задолжително<br />" />
    

</asp:Content>
